<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title>wx</title>
            <script type="text/javascript" src="../jquery-1.8.3.js"></script>
            <script type="text/javascript">
                $(function () {

                });
            </script>
        </head>
        <body>
            <a href="add">添加</a>
            <a href="publishMenu">发布</a>
            <table width="900" align="center" border="1">
                <tr>
                    <td>ID</td>
                    <td>name</td>
                    <td>key</td>
                    <td>url</td>
                    <td>content</td>
                    <td>type</td>
                    <td>pid</td>
                </tr>

                <c:forEach items="${menus}" var="menu">
                    <tr>
                        <td>${menu.id}</td>
                        <td>${menu.name}[<a href="update/${menu.id}">更新</a>&nbsp;<a href="delete/${menu.id}">删除</a>]</td>
                        <td>${menu.menuKey}</td>
                        <td>${menu.url}</td>
                        <td>${menu.content}</td>
                        <td>${menu.type}[${menu.responType}]</td>
                        <td>${menu.pid}</td>
                    </tr>
                </c:forEach>
            </table>
            <div>
                <c:forEach items="${wmds}" var="wmd">
                    <div>
                        ${wmd.name}--->${wmd.type}--->${wmd.key}--->${wmd.id}
                        <br/>
                        &nbsp;
                        <c:forEach items="${wmd.sub_button}" var="sbm">
                            ${sbm.name}--->${sbm.type}--->${sbm.key}--->${sbm.id}
                            <br/>&nbsp;
                        </c:forEach>
                    </div>
                </c:forEach>
            </div>
        </body>
    </html>
